package com.yyge;

import com.yyge.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
       String Path="classpath:ApplictionContext.xml";
        ApplicationContext context=new ClassPathXmlApplicationContext(Path);
        BookService service= context.getBean(BookService.class);
        service.function();
    }
}
